// 1. 导入模块
const fs = require('fs')
const util = require('util')
// 2. 调用内容
const myReadFile = util.promisify(fs.readFile)
// 3. 读取文件
let one = myReadFile('./resource/1.txt')
let two = myReadFile('./resource/2.txt')
let three = myReadFile('./resource/3.txt')
let result = Promise.all([one, two, three])
result.then(value => {
    console.log(value.toString())
}, reason => {
    console.log(reason)
})